From ec480ce025f9a1668ff48e065b7d36b8ed2632d4 Mon Sep 17 00:00:00 2001 From: "Kim F. Storm" Date: Sun, 16 Mar 2003 20:48:31 +0000 Subject: [PATCH] (XChar2b): Move typedef here for consolidation. (STORE_XCHAR2B, XCHAR2B_BYTE1, XCHAR2B_BYTE2): New macros. --- src/macgui.h | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/src/macgui.h b/src/macgui.h index a6ad18fddcf..f0ae1c36397 100644 --- a/src/macgui.h +++ b/src/macgui.h @@ -97,6 +97,22 @@ struct MacFontStruct { typedef struct MacFontStruct MacFontStruct; typedef struct MacFontStruct XFontStruct; +/* Structure borrowed from Xlib.h to represent two-byte characters. */ + +typedef struct { + unsigned char byte1; + unsigned char byte2; +} XChar2b; + +#define STORE_XCHAR2B(chp, b1, b2) \ + ((chp)->byte1 = (b1), (chp)->byte2 = (b2)) + +#define XCHAR2B_BYTE1(chp) \ + ((chp)->byte1) + +#define XCHAR2B_BYTE2(chp) \ + ((chp)->byte2) + /* Emulate X GC's by keeping color and font info in a structure. */ typedef struct _XGCValues -- 2.30.2